package com.ljf.task.infra.assembler;

import com.ljf.task.dto.command.TaskDatTaskTabulationCommand;
import org.mapstruct.BeanMapping;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

/**
 * 任务列表  类型转换类
 * 
 * @author LJF
 * @since 2024-12-25
 */
@Mapper
public interface TaskDatTaskTabulationAssembler {

    TaskDatTaskTabulationAssembler INSTANCE = Mappers.getMapper(TaskDatTaskTabulationAssembler.class);

    TaskDatTaskTabulationCommand toEditCommand(TaskDatTaskTabulationCommand command);

    @BeanMapping(ignoreByDefault = true)
    @Mapping(target = "id", source = "id")
    TaskDatTaskTabulationCommand toEditTaskStatusCommand(TaskDatTaskTabulationCommand command);

}
